package com.aspose.cells;

class zboj extends zt {
   private double e;
   private int f;

   public zboj(zhh var1, String var2, String var3, int var4, int var5) {
      super(var1, var2, var3);
      this.f = var5;
      switch(var4) {
      case 0:
         this.e = 24.0D;
         break;
      case 1:
         this.e = 1440.0D;
         break;
      case 2:
         this.e = 86400.0D;
         break;
      default:
         this.e = 1.0D;
      }

   }

   public boolean e() {
      return true;
   }

   public boolean f() {
      return false;
   }

   protected void a(zxu var1, DateTime var2, double var3, StringBuilder var5) {
      int var6;
      if (this.e > 72000.0D) {
         if (var3 < 0.0D) {
            var6 = (int)(var3 * this.e - 0.5D);
         } else {
            var6 = (int)(var3 * this.e + 0.5D);
         }
      } else {
         var6 = (int)(com.aspose.cells.b.a.zq.b(var3 * 8.64E7D, 0) / 8.64E7D * this.e);
      }

      String var7 = com.aspose.cells.b.a.zo.a(Math.abs(var6));
      if (var6 < 0) {
         var5.append('-');
      }

      for(int var8 = var7.length(); var8 < this.f; ++var8) {
         var5.append('0');
      }

      var5.append(var7);
   }
}
